We often need to set UIlabel, UIbutton, and UItextfield fonts during development. UIFont is used at this time. The following describes the usage of UIFont for reference only.
UIFont is used to obtain and set font information. This class provides
Css
CSS Properties:
5. Font Properties:
This defines the various properties of the font.
The font-family property defines the name of the font, either a font name or a font name, and the name of the font must be exactly the same as in the computer
Label. Font
=
[Uifont
Fontwithname:@ "Arial-bolditalicmt"
Size:24];
The name is as follows:
Font family: American typewriterFont: americantypewriterFont: americantypewriter-bold
Font family: applegothicFont: applegothic
Font family: ArialFont:
Combined with a book and Apple official examples, summarize the download method.Apple gives us a lot of beautiful fonts, but some font devices are not built-in, we need to download.The font name that the system provides to us can be consulted
You may already be adept at using these two flexible units, but you may not fully understand when to use REM and when to use EM. This tutorial will help you figure it out!Both EM and REM are relative units that are converted by the browser to pixel
You may already be proficient in using these two flexible units, but you may not fully understand when rem to use and when to use them em . This tutorial will help you figure it out!emAnd rem are relative units that are converted by the browser to
In iOS, uifont is usually used to set fonts, except catextlayer. For more information, see catextlayer class reference,
May be eitherCtfontref,Cgfontref, An instanceNsfont(Mac OS X only), or a string naming the font. In iOS, you cannot
Read a lot about Ngui Drawcall article, see more of one point is: An Atlas corresponds to a drawcall.But in fact, Ngui internal has its own set of rules for drawcall processing. The relevant rules are:1.Atlas Atlas number aboutThe call order
Read a lot of articles about Ngui Drawcall. One of the more views is that an Atlas corresponds to a drawcall.But in fact Ngui has its own set of rules for Drawcall's handling.The relevant rules are:1.Atlas Atlas number aboutThe call order (drawing
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.